package com.ruoyi.security.constant;

/**
 * @author yeoman
 * @date 2025/1/13 19:39
 * @description api常量类
 */
public class ApiConstant {

    public static final String SINA_VIP_STOCK_FINANCE_BASE = "https://vip.stock.finance.sina.com.cn/";

    public static final String SINA_FINANCE_BASE_URL = "https://finance.sina.com.cn/";


    /**
     * 深交所交易日历url
     */
    public static final String SZSE_TRADING_CALENDAR_URL = "https://www.szse.cn/api/report/exchange/onepersistenthour/monthList?month=%s";

    /**
     * 证券列表url
     */
    public static final String SECURITY_LIST_URL = SINA_VIP_STOCK_FINANCE_BASE + "quotes_service/api/json_v2.php/Market_Center.getHQNodeData?";

    /**
     * 证券详情url - 通过页面抓取
     */
    public static final String SECURITY_DETAIL_URL = SINA_FINANCE_BASE_URL + "realstock/company/%s/nc.shtml";

    /**
     * 证券分钟交易url - 通过页面抓取
     */
    public static final String SECURITY_MINUTE_TRADE_URL = SINA_FINANCE_BASE_URL + "h5charts/tchart.html?symbol=%s&date=%s&rangeselector=true&indicator=tvol";

    /**
     * 证券分钟交易次数
     */
    public static final int SECURITY_MINUTE_TRADE_COUNT = 241;

}
